package com.oocl.scan.store;

import com.oocl.scan.model.FieldElement;
import java.util.HashMap;
import java.util.Map;

public class GlobalStore {

  public Map<String, FieldElement> getFieldElementMap() {
    return fieldElementMap;
  }

  public void AppendFieldElement(String className, FieldElement fieldElement) {
    if (className != null && fieldElement != null) {
      fieldElementMap.put(className, fieldElement);
    }
  }

  private Map<String, FieldElement> fieldElementMap = new HashMap<>();

  private GlobalStore() {
  }

  private static GlobalStore globalStore = new GlobalStore();

  public static GlobalStore getInstance() {
    return globalStore;
  }

}
